package cn.itsource.lock;

/**
 * 分布式锁接口
 */
public interface ItsourceLock {
    /*加锁*/
    void lock(String resourceName);
    /*释放锁*/
    void unlock(String resourceName);
    /**尝试获取锁*/
    boolean tryLock(String resourceName);
}
